package com.smartstate.EnvironmentMonitor.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>报警信息</p>
 * <p>@Author 陈永杰</p>
 * <p>@Date: 2022/8/16</p>
 * <p>@Time: 10:37</p>
 * <p>@version 1.0 <p>
 */
@Data
@TableName("alarm")
public class Alarm {

    /**
     * 报警主键ID
     */
    @TableId(type = IdType.INPUT)
    @TableField(value = "id",fill = FieldFill.INSERT)
    private String id;

    /**
     *楼宇外键ID
     */
    @TableField(value = "objId")
    @ApiModelProperty(value = "楼宇外键")
    private String objId;

    /**
     *楼宇名字
     */
    @TableField(value = "objName")
    @ApiModelProperty(value = "楼宇名字")
    private String objName;


    /**
     * 报警开始值
     */
    @TableField(value = "alarmValue")
    @ApiModelProperty(value = "报警值")
    private String alarmValue;

    /**
     * 报警限值
     */
    @TableField(value = "alarmStop")
    @ApiModelProperty(value = "报警限值")
    private String alarmStop;

    /**
     * 是否处理
     */
    @TableField(value = "state")
    @ApiModelProperty(value = "是否处理")
    private String state;



    /**
     * 设备名称
     */
    @TableField(value = "eName")
    @ApiModelProperty(value = "设备名称")
    private String eName;

    /**
     * 设备id
     */
    @TableField(value = "deviceId")
    @ApiModelProperty(value = "设备id")
    private String deviceId;


    /**
    * 设备属性
    */
    @TableField(value = "attributes")
    @ApiModelProperty(value = "设备属性")
    private String attributes;


    /**
     * 报警异常时间
     */
    @TableField(value = "abnormaltime")
    @ApiModelProperty(value = "报警异常时间")
    private String abnormaltime;

    /**
     * 设备状态
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "设备状态")
    private String type;

    /**
     * 设备类型
     */
    @TableField(value = "types")
    @ApiModelProperty(value = "设备类型")
    private String types;



    /**
     * 开始时间
     */
    @TableField(value = "createTime")
    @ApiModelProperty(value = "开始时间")
    private String createTime;

    /**
     * 结束时间
     */
    @TableField(value = "stopTime")
    @ApiModelProperty(value = "结束时间")
    private String stopTime;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    @TableField(value = "createUser",fill = FieldFill.INSERT)
    private String createUser;



    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updateTime", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 修改人
     */
    @ApiModelProperty(value = "修改人")
    @TableField(value = "updateUser", fill = FieldFill.UPDATE)
    private String updateUser;


    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;


}